<%attr>
	sHead => "new article"
</%attr>
<%args>
	$title => undef
	$doctext => undef
</%args>

<%init>
	# fields-names and default values. 
	my $field_names = ['title', 'subcat_id'];
	my $field_titles = { 'title' => 'title', 'subcat_id' =>  'sub-category' };
	my @subcategories = $m->comp('../dao/subcategory_dao.mi:findAll'); 
	my $field_constraints = { 'subcat_id' => \@subcategories };
	$m->comp('../view/article_full_edit.mi', entity_name => 'article', 
		field_names => $field_names, 
		field_titles => $field_titles, 
		field_constraints => $field_constraints);
</%init>